#pragma once

#include <QThread>

namespace kryptos { namespace util {

class Worker : public QThread
{
  public:
    Worker()
    {
        setTerminationEnabled(true);
    }

    static void mSleep(unsigned long msecs) { QThread::msleep(msecs); }

  protected:
    void run() { exec(); }
};

}}
